package cn.com.mr01.lianxi.mr_lianxi_1501;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.regex.Pattern;

public class Test {

	public static void main(String[] args) {
		/*Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$");
		System.out.println(pattern.matcher("9001").matches());
		String s = "This is my oraginal string";
		String s1 = s.substring(2);
		System.out.println(s1);*/
		
		List<String> list = Arrays.asList("a", "b", "c", "d");
		Iterator<String> it = list.iterator();
		while(it.hasNext()){
			it.next();
		}
		it = list.iterator();
		while(it.hasNext()){
			System.out.println(it.next());
		}
	}

}
